// 导入 mongoose 模块
const mongoose = require("mongoose");

// 创建文档结构
let novelSchema = new mongoose.Schema({
  name: String,
  author: String,
  price: Number,
  is_hot: Boolean,
});

// 创建文档结构对象
let novelModel = mongoose.model("novel", novelSchema);

// 暴露
module.exports = novelModel;
